babl-cache: avoid %'ing by 0
authorØyvind Kolås <pippin@gimp.org>
Sun, 20 Nov 2016 12:28:43 +0000 (13:28 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sun, 20 Nov 2016 12:28:43 +0000 (13:28 +0100)
babl/babl-cache.c

index 4a26db087c15116ef7324fc9064c41e23c721bc1..926d9f1492ccf6b4dd149e0b9c244006d3ed9c70 100644 (file)
@@ -209,7 +209,7 @@ void babl_init_db (void)
           if (babl)
           {
             if ( ((babl->fish.pixels+1 + babl->fish.processings) % 
-                (tim % 100)) == 0)
+                  ((tim % 100)+1)) == 0)
             {
               /* 1% chance of individual cached conversions being dropped -
                * making sure mis-measured conversions do not